package com.itheima.demo01.Object;

import java.util.Random;

public class Demo02Equals {
    public static void main(String[] args) {
        Person p1 = new Person("迪丽热巴", 18);
        Person p2 = new Person("迪丽热巴", 18);
//        Person p2 = new Person("古力娜扎", 18);
        System.out.println("p1:" + p1);
        System.out.println("p2:" + p2);
        Random r=new Random();
        System.out.println(p1.equals(p1));
    }
}
